#!/usr/bin/env python

import sys, os

def init ( liwe, admin = 0 ):
	from liwe import parts

	parts.add ( liwe.layman, "form" )
	parts.add_wwl ( liwe.layman, [ "base" ] )

	liwe.layman.add_css ( "modules/comment/gfx/comment.css" )
	liwe.layman.add_js ( "modules/comment/js/comment.js" )
	liwe.layman.add_js_code ( "comment.init ();" )

	if admin and int ( admin ):
		liwe.layman.add_css ( "modules/comment/gfx/comment.admin.css" )
		liwe.layman.add_js ( "modules/comment/js/comment.admin.js" )
		liwe.layman.add_js_code ( "comment.admin.init ();" )

	return ''
